package org.six11.olive3.client;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Stroke;

import org.six11.util2.pen.Sequence;

/**
 * A basic renderer for strokes--draws in a thin black line.
 * 
 * @author Gabe Johnson <johnsogg@cmu.edu>
 * 
 */
public class BasicRenderer extends StrokeRenderer {

  private Stroke drawingStroke;
  
  public BasicRenderer() {
    drawingStroke = new BasicStroke(1.6f);
  }

  /**
   * (Override) @see org.six11.olive3.StrokeRenderer#render(java.awt.Graphics2D,
   * org.six11.util2.pen.Sequence)
   */
  @Override
  public void render(Graphics2D g, Sequence seq) {
    g.setStroke(drawingStroke);
    g.setColor(Color.BLACK);
    g.draw(seq);
  }
}